#
# Defines environment variables.
#
# Authors:
#   Sorin Ionescu <sorin.ionescu@gmail.com>
#

# Ensure that a non-login, non-interactive shell has a defined environment.
if [[ ( "$SHLVL" -eq 1 && ! -o LOGIN ) && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
  source "${ZDOTDIR:-$HOME}/.zprofile"
fi

# history-substring-search seems broken without this
export DEBIAN_PREVENT_KEYBOARD_CHANGES=yes

if [[ $OSTYPE == linux* ]] && [[ -n "$DISPLAY" ]]; then
  # TERM=xterm.* may behave oddly if not in X
  # e.g. newline works with Ctrl+O but *not* with 'return'.
  export TERM=xterm-256color
fi

export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

export LIBVIRT_DEFAULT_URI=qemu:///system

# Local Variables:
# mode: sh
# End:
